﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ChuanYe.CountyFireManagement.Api.Models
{
    public class MessageSearchRequest
    {
        /// <summary>
        /// 选填 消息编号
        /// </summary>
        public int MessageId { get; set; }

        /// <summary>
        /// 选填 火灾编号
        /// </summary>
        public int FireId { get; set; }

        /// <summary>
        /// 选填  是否已读  0.未读 1.已读  默认为空时查所有
        /// </summary>
        public int? IsRead { get; set; }

        /// <summary>
        /// 所在 区
        /// </summary>
        public string AddressCounty { get; set; }

        /// <summary>
        /// 所在 镇
        /// </summary>
        public string AddressTown { get; set; }

        /// <summary>
        /// 所在 村
        /// </summary>
        public string AddressVillage { get; set; }

        /// <summary>
        /// 消息类型集合  api/BasicEnum/GetMessageEnum
        /// </summary>
        public List<int> MessgeTypes { get; set; }

        /// <summary>
        /// 消息发送类型集合 api/BasicEnum/GetMessageSendEnum
        /// </summary>
        public List<int> MessageSendTypes { get; set; }

        /// <summary>
        /// 接收者用户编号(发给谁)
        /// </summary>
        public int TargetUserId { get; set; }
    }

    public class ChangeMessageReadStatusRequest
    {
        /// <summary>
        /// 选填 消息编号
        /// </summary>
        public int MessageId { get; set; }


        /// <summary>
        /// 选填  是否已读  0.未读 1.已读  
        /// </summary>
        public int? IsRead { get; set; }
    }
}
